using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// User_Info - 用户详细 - 对象继承类
    /// </summary>
    [MetadataType(typeof(UserInfoValidaTion))]
    public class UserInfo : IUserInfo<UserInfo>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class UserInfoValidaTion
       {

     

        /// <summary>
        /// 用户ID
        /// </summary>
        [Display(Name ="用户ID")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 部门
        /// </summary>
        [Display(Name ="部门")]
        [StringLength(36)]
        public String DepartmentId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 姓名
        /// </summary>
        [Display(Name ="姓名")]
        [StringLength(15)]
        public String Name
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 邮箱
        /// </summary>
        [Display(Name ="邮箱")]
        [StringLength(80)]
        public String Email
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 头像
        /// </summary>
        [Display(Name ="头像")]
        [StringLength(36)]
        public String HeadFlieId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 头衔
        /// </summary>
        [Display(Name ="头衔")]
        [StringLength(30)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 地址
        /// </summary>
        [Display(Name ="地址")]
        [StringLength(200)]
        public String Address
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 性别
        /// </summary>
        [Display(Name ="性别")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.UserInfo.Gender Gender
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 出生日期
        /// </summary>
        [Display(Name ="出生日期")]

        public DateTime DateBirth
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 简介
        /// </summary>
        [Display(Name ="简介")]
        [StringLength(500)]
        public String Summary
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
